package hello.controller;

import hello.service.BaseA;
import hello.service.BaseImpl;
import hello.service.BaseInterface;

/**
 * Created by Intellige Idea.
 * Author hiberk
 * Date 2017/6/7 11:02
 */
public class TestMethod {

    public TestMethod() {
        System.out.println("this is constructor");
    }

    private BaseA baseA;
    public static void main(String[] args) {
        BaseInterface baseInterface = new BaseImpl();
        System.out.println(BaseImpl.a);
//        new TestMethod();
    }
    {
        System.out.println("this is block statement!");
    }

    public TestMethod(BaseA baseA) {
        baseA.out();
    }

}
